import mongoose from '../dbHelper';
import { defaultSchemaExtend, defaultSchemaOptions } from "../config/index";

const Schema = mongoose.Schema;

const HotTitleSchema = new Schema(Object.assign({
    shop_info: {
        type: Schema.Types.ObjectId,
        ref: 'Shop',
    },
    shop_id: Number,
    hot_title: [String], // 标签
}, defaultSchemaExtend), defaultSchemaOptions);

const HotTitle = mongoose.model('HotTitle', HotTitleSchema, 'HotTitles');

export default HotTitle